<template>
	<view class="rules-content">
		<view class="rules-desc">
			<rich-text :nodes="content"></rich-text>
		</view>
	</view>
</template>

<script>
	import { getCardRule } from "@/api/active.js"
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad() {
			this.getCardRule();
		},
		methods: {
			getCardRule() {
				getCardRule({}).then(res => {
					this.content = res.data;
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.rules-content{
	height: 95vh;
	padding: 30rpx;
	background: linear-gradient(113deg, #CC984B 0%, #C37E2B 50%, #C68939 100%);
	.rules-desc{
		width: 75%;
		height: 80vh;
		padding: 80rpx;
		background-color: #fff;
		margin: 0 auto;
		.title{
			font-weight: 500;
			font-size: 22px;
			color: #000000;
			text-align: center;
			margin-bottom: 20px;
		}
		.desc{
			line-height: 30px;
			span{
				font-weight: bold;
			}
		}
		.shuoming{
			margin-top: 20px;
			span{
				color: #FD463E;
			}
		}
	}
}
</style>
